
import {createRouter,createWebHashHistory} from 'vue-router'

import Login from '@/components/Login/index.vue'
import Draw from '@/components/Draw/index.vue'
import Register from '@/components/Register/index.vue'
import RoomSelect from '@/components/RoomSelect/index.vue'
import RoomCreate from '@/components/RoomCreate/index.vue'
import WordSelect from '@/components/WordSelect/index.vue'
import WordCreate from '@/components/WordCreate/index.vue'
import CusDraw from '@/components/Draw/cus-index.vue'
const routes =[
    //{path: '/', redirect: '/HelloWorld'},
    {path: '/login', component:Login},
    {path: '/register', component:Register},
    {path: '/roomCreate', component:RoomCreate},
    {path: '/draw',component:Draw},
    {path: '/cusdraw',component:CusDraw},
    {path: '/roomSelect',component:RoomSelect},
    {path: '/wordSelect',component:WordSelect},
    {path: '/wordCreate',component:WordCreate},
    {path: '/:catchAll(.*)',component:Login}

    
]
const router = createRouter({
    history: createWebHashHistory(),
    routes,
})

export default router